import request from '@/utils/request'
//咨询列表
export function uploadApi(data, options = {}) {
  return request({
    url: '/upload/index/index',
    method: 'post',
    data,
    onUploadProgress: options.onUploadProgress
  })
}

export function Api(url, data) {
  return request({
    url: '/admin/Newdocumen/'+url,
    method: 'post',
    data,
  })
}


export function uploadOcrApi(data, options = {}) {
  return request({
    url: '/upload/ocr/index',
    method: 'post',
    data,
    onUploadProgress: options.onUploadProgress
  })
}


export function ocrApi(url, data) {
  return request({
    url: '/admin/Ocrbatch/'+url,
    method: 'post',
    data,
  })
}



